<template>
  <div>
   <van-address-list 
        :list="list"
        @add="hanldeAdd"
        @edit="hanldeEdit"
          :switchable="false"
      />
  </div>
</template>

<script>
import axios from "axios"
export default {
  name: 'Table',
  data() {
    return {
      list : [
    
    ],


    };
  },

  mounted() {
     axios.post("/api/getDz").then(res=>{
   this.list=res.data.msg
     })
  },

  methods: {
  hanldeAdd(){
    console.log(new Date().getTime())
   this.$router.push(`/addRo/${new Date().getTime()}`)
  },
  hanldeEdit(e){
  this.$router.push(`/addRo/${e.id}`)
  }
  }
};
</script>

<style lang="scss" scoped>

</style>